package com.atguigu.gulimail.gateway;

import com.atguigu.gulimail.gateway.config.ServiceProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@EnableDiscoveryClient
@SpringBootApplication
@EnableConfigurationProperties(ServiceProperties.class)
public class GatewayApplication   {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }

}